package com.ruoyi.flowable.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 表单版本业务对象 flow_form_version
 *
 * @author zxw
 * @date 2023-03-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FormVersionBo extends BaseEntity {

    /**
     * 版本ID
     */

    private Long versionId;

    /**
     * 表单ID
     */
    @NotNull(message = "表单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formId;

    /**
     * 版本
     */
    private Long version;

    /**
     * 表单内容
     */
    @NotBlank(message = "表单内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formContent;

    /**
     * 表单字段
     */
    @NotBlank(message = "表单字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formField;

    /**
     * 子表单字段
     */
    @NotBlank(message = "子表单字段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subFormField;

    /**
     * 表单容器
     */
    @NotBlank(message = "表单容器不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formContainer;


}
